package com.frontier.consumer8003.feign;

import com.frontier.consumer8003.config.FeignLogConfig;
import com.frontier.consumer8003.feign.factory.ProviderFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * provider feign调用
 *
 * @author YLS-XuXu
 * @time 2022/2/24
 */
@FeignClient(value = "cloud-alibaba-provider", configuration = FeignLogConfig.class, fallbackFactory = ProviderFeignClientFallbackFactory.class)
public interface ProviderFeignClient {
    /**
     * 网关负载均衡测试接口
     *
     * @return 测试结果
     */
    @GetMapping("/provider/testGateWay")
    String testGateWay();
}
